package com.woniuxy01;

public class Test01 {
    public static void main(String[] args) {
        int n=3,a=2,t=a,sum=0;
        for (int i=1;i<=n;i++){
            System.out.println(t);
            sum+=t;
            t=t*10+a;
        }
        System.out.println(sum);
    }
}
